from typing import Optional
from datetime import date
from sqlmodel import SQLModel, Field

class News(SQLModel, table=True):
    __tablename__ = "news"

    id: Optional[int] = Field(default=None, primary_key=True, index=True)
    title: str
    url: str
    summary: str
    docdate: date
    main_content: str
